package com.itheima.service;

import com.itheima.common.PageInfo;
import com.itheima.pojo.Employee;
import com.itheima.vo.EmployeeVo;

/**
 * @author YangJiaHao
 */
public interface EmployeeService {

    EmployeeVo login(String username, String password);

    void clearToken(String token);

    EmployeeVo getById(String id);

    PageInfo<Employee> page(String name, Integer page, Integer pageSize);

    Boolean save(Employee employee);

    Employee findByUsername(String username);

    boolean updateEmployee(Employee employee);
}
